﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;

namespace _16.ParseDate
{
    class ParseDate
    {
        static void Main(string[] args)
        {
            string first = "27.02.2003";
            string second = "28.02.2006";
            
            DateTime firstDate=DateTime.ParseExact(first,"d.MM.yyyy", CultureInfo.InvariantCulture);
            DateTime secondDate = DateTime.ParseExact(second, "d.MM.yyyy", CultureInfo.InvariantCulture);
            int result = (int)(secondDate - firstDate).TotalDays;
            Console.WriteLine(result);
        }
    }
}
